<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
</head>
<style>
    html,
    body {
        background-color: #fff;
    }

    .placeholder_div {
        background-color: #fbf9f9;
    }

    .select_div {
        width: 100%;
    }

    .select_div .padding_div {
        padding: 0 0.8rem;
    }

    .select_div .padding_div .select_item {
        border-bottom: 1px solid #eaeaea;
        width: 100%;
        height: 2.7rem;
        line-height: 2.7rem;
        position: relative;
    }

    .select_item p {
        font-size: 0.7rem;
        color: #565656;
        position: absolute;
    }

    .select_item .arrow_right {
        width: 0.4rem;
        height: 0.8rem;
        right: 0;
        position: absolute;
        top: 1rem;
    }

    .checkbox_img {
        width: 2.75rem;
        height: 1.5rem;
        position: absolute;
        right: 0;
        top: 0.6rem;
    }
</style>

<body>
    <div  id="app" v-cloak>
        <div class="placeholder_div"></div>
        <div class="select_div">
            <!-- <div class="padding_div">
                <div class="select_item openwin" data-win="welcome_word_win">
                    <p>欢迎语设置</p>
                    <img class="arrow_right" src="../image/arrow_right.png" alt="">
                </div>
            </div> -->

            <div class="padding_div">
                <div class="select_item">
                    <p>免打扰时间设置</p>
                    <img class="checkbox_img" @click="miandarao = miandarao? false:true,miandarao_methods(miandarao)"
                        :src="miandarao ? '../image/checkbox_true.png':'../image/checkbox_false.png' ">
                </div>
            </div>

            <!-- <div class="padding_div">
                <div class="select_item">
                    <p>自动随访设置</p>
                    <img class="checkbox_img" @click="suifang = suifang? false:true,suifang_methods(suifang)"
                        :src="suifang ? '../image/checkbox_true.png':'../image/checkbox_false.png' ">
                </div>
            </div> -->
        </div>
    </div>
</body>

</html>
<script src="../script/set_root.js"></script>

<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.min.js"></script>
<script type="text/javascript" src="../script/hb.js"></script>
<script type="text/javascript" src="../script/vue.js"></script>
<script type="text/javascript">
    apiready = function () {
        hb_ready();
    }
    //使用vue对数据进行绑定
    var app = new Vue({
        el: '#app',
        data: {
            qrcode: true,
            miandarao: true,
            suifang: false
        },
        methods: {
            miandarao_methods: function (obj) {
                var msg = obj ? "开启" : "关闭"
                toast(msg)
            },
            suifang_methods: function (obj) {
              var msg = obj ? "开启" : "关闭"
                toast(msg)
            }
        },

    })
</script>
